home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / yase.arc / GROUP4.ASM < prev    next >
Assembly Source File  |  1986-12-13  |  2KB  |  52 lines

  1. ******************************************************************
  2. * COPYRIGHT (C) 1986 by Donald Krantz and James Stanley
  3. * - Note: This is a real, live, actual, registered copyright,
  4. *   and should be treated as such. This source code is from
  5. *   the book "68000 Assembly Language", Krantz and Stanley,
  6. *   Addison-Wesley Publishing Company, Reading, MA, 1986.
  7. *   Permission granted by the authors for non-commercial use
  8. *   in programs released to the public domain, as long as this
  9. *   copyright notice remains attached and visible.
  10. *
  11. *****************************************************************
  12. * GROUP 4 (PC Function Key) Commands
  13.  
  14.     xref    _getkey,case,up,down,right,left,down_page,up_page
  15.     xref    del_left,toggle,home,eof,default
  16.     xdef    group_4
  17.  
  18. *****************************************************************
  19. * GROUP_4 - group 4 (PC Cursor) commands
  20. group_4:
  21.     bsr    _getkey        * get switch key
  22.     move.l    #table4,a0    * load up case table address
  23.     bra    case        * returns to caller of group_2
  24. *****************************************************************
  25. * TABLE_4 - switch table for group 4 commands
  26. table4:
  27.     dc.w    10        * 10 choices
  28.     dc.w    $48        * cursor up key
  29.     dc.l    up
  30.     dc.w    $50        * cursor down key
  31.     dc.l    down        
  32.     dc.w    $4D        * cursor right key
  33.     dc.l    right
  34.     dc.w    $4B        * cursor left key
  35.     dc.l    left
  36.     dc.w    $51        * PgDn key
  37.     dc.l    down_page
  38.     dc.w    $49        * PgUp key
  39.     dc.l    up_page
  40.     dc.w    $53        * Del key
  41.     dc.l    del_left
  42.     dc.w    $52        * Ins key
  43.     dc.l    toggle
  44.     dc.w    $47        * Home key
  45.     dc.l    home
  46.     dc.w    $4F        * End key
  47.     dc.l    eof
  48.     dc.l    default
  49.  
  50.     end
  51.